package com.tqjc.entity;

import com.baomidou.dynamic.datasource.annotation.DS;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.tqjc.system.core.annotation.QueryField;
import com.tqjc.system.core.model.QueryCondition;
import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

@TableName(value = "stock_steels")
@Data
@DS("xianggang")
@Schema(description = "垛位钢板信息")
public class StockSteels extends Model implements Serializable, Cloneable {
    /**
     * 钢板主键
     */
    @TableId(type = IdType.AUTO)
    @Schema(description = "主键ID")
    private int id;
    /**
     * 钢板号
     */
    @Schema(description = "钢板号")
    private String steelIds;
    /**
     * 钢板长度
     */
    @Schema(description = "钢板行数量")
    private Integer rowNum;
    /**
     * 钢板宽度
     */
    @Schema(description = "钢板列数量")
    private Integer columnNum;
    /**
     * 钢板厚度
     */
    @Schema(description = "钢板层数")
    private Integer tier;
    /**
     * 钢板型号
     */
    @Schema(description = "钢板数量")
    private Integer steelsNum;
    /**
     * 钢板重量
     */
    @Schema(description = "垛位id")
    @QueryField(queryColumn="stock_id", condition= QueryCondition.eq)
    private Integer stockId;

    @Schema(description = "创建时间")
    @QueryField(queryColumn="create_time", condition= QueryCondition.range)
    private Date createTime;

}

